package com.lalameow.serverlogingate.network.clientfortest;

import io.netty.bootstrap.Bootstrap;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelOption;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.channel.socket.nio.NioSocketChannel;
import io.netty.handler.codec.MessageToMessageCodec;
import io.netty.handler.codec.http.HttpContentCompressor;

public class ClientMain {

//    public static void main(String[] args) {
//        NioEventLoopGroup workerGroup = new NioEventLoopGroup();
//        Bootstrap client=new Bootstrap();
//        client.
//                group(workerGroup).
//                channel(NioSocketChannel.class).
//                handler(new NetGateChannelIniti());
//        try {
//            ChannelFuture future = client.connect("127.0.0.1", 28888).sync();
//            future.channel().writeAndFlush(Unpooled.copiedBuffer("777".getBytes()));
//            future.channel().closeFuture().sync();
//        } catch (InterruptedException e) {
//            System.out.println(e.getMessage());
//        }finally {
//            workerGroup.shutdownGracefully();
//        }
//    }
}
